import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'home_mine/home_mine_cubit.dart';

class WebPage extends StatefulWidget {
  const WebPage({super.key});

  @override
  State<WebPage> createState() => _WebPageState();
}

class _WebPageState extends State<WebPage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return BlocProvider(
      create: (context) => HomeMineCubit(),
      child: BlocBuilder<HomeMineCubit, HomeMineState>(
        builder: (BuildContext context, HomeMineState state) {
          return SafeArea(
              child: Text('aaa'),
              // child: InAppWebView(
              //   initialUrlRequest: URLRequest(url: WebUri('https://echarts.apache.org/examples/zh/index.html')),
              // ),
              );
        },
      ),
    );
  }
}
